@echo off
setlocal enabledelayedexpansion

powershell -ExecutionPolicy Bypass -File "%~dp0flash.ps1"
set ERR=%ERRORLEVEL%
if not "%ERR%"=="0" (
  echo Flash failed with exit code %ERR%.
  exit /b %ERR%
)

echo Flash done.
exit /b 0
